#ifndef _MY_DRAW_THREAD_H_
#define _MY_DRAW_THREAD_H_

#include "wx/thread.h"
#include "wx/dynarray.h"
#include "Image.h"
#include "wx/wx.h"

class MyDrawThread:public wxThread
{
public:
	MyDrawThread(wxFrame *frame):wxThread(),mainframe(frame)
	{
	}
	 void *Entry()
	{
		wxMutexGuiEnter();
		//NOVA::Image * tmp = ((wxMYPictureFrame*)myMainFrame)->GetImage();
		mainframe->Refresh();
		wxMutexGuiLeave();
		//float width = 0;
		//tmp->Get<float>("WindowWidth", width);
		//if(width>0)//it's dicom image
			//
		

		return NULL;
	}
	 void OnExit()
	{
		OutputDebugStringA("draw over\n");
	}
private:
	wxFrame *mainframe;
};
#endif